package com.tct.worktimeboard.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

import java.util.List;

/**
 * @author Huhailong
 * @Description
 * @Date 2021/2/23.
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName("work_group")
@JsonInclude(value = JsonInclude.Include.NON_NULL)
public class WorkGroup extends PageObject implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    @Excel(name="分组名",needMerge = true)
    private String groupName;
    private Integer groupCount;
    private Long groupTypeId;
    @TableField(exist = false)
    private String groupTypeName;
    private Long createUserId;
    private String createUsername;
    private String createTime;

    @TableField(exist = false)
    @ExcelCollection(name="用户工时")
    private List<Work> workList;
}
